<?php
/**
 * @author shuang
 * @date 2016-11-3 13:52:19
 */
use yii\helpers\ArrayHelper;
?>
<ul class="mui-table-view">
    <?php foreach ($data as $item): ?> 
    <li class="mui-table-view-cell mui-media">
        <a href="javascript:;">
            <img class="mui-media-object mui-pull-left" src="" onerror="this.src='../images/default.png'" />
            <div class="mui-media-body">
                用户名：<?php echo ArrayHelper::getValue($item, "username"); ?>，总任务量：<?php echo ArrayHelper::getValue($item, "taskcount"); ?>
                <p class='mui-ellipsis'>注册时间：<?php echo Yii::$app->formatter->asDatetime($item["created_at"]); ?></p>
            </div>
        </a>
    </li>
    <?php endforeach;?>
</ul>